<template>
  <div class="header">
    <div class="header-left"> <span class="iconfont icon-back">&#xe624;</span></div>
    <div class="header-input">
      <span class="iconfont icon-serch">&#xe632;</span>
      输入城市/景点/游玩主题
    </div>
    <router-link to='/city'>
    <div class="header-right">
      {{this.$store.state.city}}
      <span class="iconfont">&#xe644;</span>
      </div>
      </router-link>
  </div>
</template>

<script>
export default {
  name: 'HomeHeader',
}
</script>

<style lang="stylus" scoped>
  @import '~styles/vribles.styl'
  .header
    line-height: .86rem
    background-color: $bgColor
    display: flex
    .header-left
      width: 0.64rem
      float: left
      .icon-back
        display :block
        text-align: center
        font-size:.5rem
        padding-left: .2rem
    .header-input
      flex: 1
      height: .64rem
      line-height: .64rem
      border-radius: .1rem
      margin-top: .12rem
      background: #fff
      margin-left: .2rem
      .icon-serch
        padding:0 .1rem
    .header-right
      min-width: 1.04rem
      padding:.01rem
      float: right
      text-align: center
      color: #fff
</style>
